/**
 * Copyright (C), 2015-2019, bogewang有限公司
 * FileName: VerificaCodeService
 * Author:   bogewang
 * Date:     2019/9/7 13:34
 * Description: 微信注册验证码接口
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bogewang.weixin.service;

import com.alibaba.fastjson.JSONObject;
import com.bogewang.core.base.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 〈微信注册验证码接口〉
 *
 * @author bogewang
 * @create 2019/9/7
 * @since 1.0.0
 */
@Api(tags = "微信注册蚂验证接口")
public interface VerificaCodeService {

    /**
     * 根据手机号码注册码验证是否正确;
     * @param phone
     * @param weixinCode
     * @return
     */
    @ApiOperation(value = "根据手机验证码验证token是否正确")
    @PostMapping("/verificaWeixinCode")
    @ApiImplicitParams({
        @ApiImplicitParam(paramType = "query", name = "phone", dataType = "String", required = true, value = "用户手机号码"),
        @ApiImplicitParam(paramType = "query", name = "weixinCode", dataType = "String", required = true, value = "微信注册码")

    })
    BaseResponse<JSONObject> verificaWeixinCode(@RequestParam("phone") String phone
            , @RequestParam("weixinCode") String weixinCode);
}